import RouterView from '@/components/MyRouterView/index.vue';
/**
 * 所有组件都在 @/views/nav/nav001/下
 * 命名都需要按照这个规则配置
 * name 记录了路由细信息
 */
export default [
    {
        path: '/nav001',
        name: 'nav001',
        meta: { title: '基础学习' },
        component: RouterView,
        redirect: '/nav001/bar001/page001',
        children: [
            {
                path: 'bar001',
                name: 'nav001bar001',
                meta: { title: '01 Hello World' },
                component: RouterView,
                redirect: '/nav001/bar001/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'nav001bar001page001',
                        meta: { title: '01.视图的配置项' },
                        component: () => import('@/views/nav/nav001/bar001/page001.vue'),
                    },
                    {
                        path: 'page002',
                        name: 'nav001bar001page002',
                        meta: { title: '02.相机的几种方法' },
                        component: () => import('@/views/nav/nav001/bar001/page002.vue'),
                    },
                    {
                        path: 'page003',
                        name: 'nav001bar001page003',
                        meta: { title: '03.entity 实体类' },
                        component: () => import('@/views/nav/nav001/bar001/page003.vue'),
                    },
                    {
                        path: 'page004',
                        name: 'nav001bar001page004',
                        meta: { title: '04.坐标系' },
                        component: () => import('@/views/nav/nav001/bar001/page004.vue'),
                    },
                ],
            },
            {
                path: 'bar002',
                name: 'nav001bar002',
                meta: { title: '02 Model 相关' },
                component: RouterView,
                redirect: '/nav001/bar002/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'nav001bar002page001',
                        meta: { title: '01.加载模型-entity' },
                        component: () => import('@/views/nav/nav001/bar002/page001.vue'),
                    },
                    {
                        path: 'page002',
                        name: 'nav001bar002page002',
                        meta: { title: '02.模型的颜色属性' },
                        component: () => import('@/views/nav/nav001/bar002/page002.vue'),
                    },
                    {
                        path: 'page003',
                        name: 'nav001bar002page003',
                        meta: { title: '03.加载模型-scene' },
                        component: () => import('@/views/nav/nav001/bar002/page003.vue'),
                    },
                    {
                        path: 'page004',
                        name: 'nav001bar002page004',
                        meta: { title: '04.PBR+模型' },
                        component: () => import('@/views/nav/nav001/bar002/page004.vue'),
                    },
                ],
            },
            {
                path: 'bar003',
                name: 'nav001bar003',
                meta: { title: '03 billborad 相关' },
                component: RouterView,
                redirect: '/nav001/bar003/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'nav001bar003page001',
                        meta: { title: '01.billboard' },
                        component: () => import('@/views/nav/nav001/bar003/page001.vue'),
                    },
                ],
            },
            /** polyline 直线相关 */
            {
                path: 'bar004',
                name: 'nav001bar004',
                meta: { title: '04 polyline 相关' },
                component: RouterView,
                redirect: '/nav001/bar004/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'nav001bar004page001',
                        meta: { title: '01.折线的几种类型' },
                        component: () => import('@/views/nav/nav001/bar004/page001.vue'),
                    },
                    {
                        path: 'page002',
                        name: 'nav001bar004page002',
                        meta: { title: '02.地表线与直线' },
                        component: () => import('@/views/nav/nav001/bar004/page002.vue'),
                    },
                    {
                        path: 'page003',
                        name: 'nav001bar004page003',
                        meta: { title: '03.折线的材质' },
                        component: () => import('@/views/nav/nav001/bar004/page003.vue'),
                    },
                    {
                        path: 'page004',
                        name: 'nav001bar004page004',
                        meta: { title: '04.折线的颜色' },
                        component: () => import('@/views/nav/nav001/bar004/page004.vue'),
                    },
                    {
                        path: 'page005',
                        name: 'nav001bar004page005',
                        meta: { title: '05.地线折线的材质' },
                        component: () => import('@/views/nav/nav001/bar004/page005.vue'),
                    },
                    {
                        path: 'page006',
                        name: 'nav001bar004page006',
                        meta: { title: '06.折线TUDO' },
                        component: () => import('@/views/nav/nav001/bar004/page006.vue'),
                    },
                ],
            },
            /** imagaryLayer 影像图层 */
            {
                path: 'bar005',
                name: 'nav001bar005',
                meta: { title: '05 imagerylayer 相关' },
                component: RouterView,
                redirect: '/nav001/bar005/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'nav001bar005page001',
                        meta: { title: '01 图册' },
                        component: () => import('@/views/nav/nav001/bar005/page001.vue'),
                    },
                ],
            },
            /** primitives  */
            {
                path: 'bar006',
                name: 'nav001bar006',
                meta: { title: '06 primitives 相关' },
                component: RouterView,
                redirect: '/nav001/bar006/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'nav001bar006page001',
                        meta: { title: '01 基本结构' },
                        component: () => import('@/views/nav/nav001/bar006/page001.vue'),
                    },
                ],
            },
        ],
    },
];
